package com.sz.ac.model.constant;

public class DefMsgException   extends RuntimeException
{
	private static final long serialVersionUID = 1L;
	private String msg;//自定义错误信息
	private int code;//自定义错误码
	
	

	public DefMsgException() {
		super();
	}

	public DefMsgException(int code, String msg) 
	{
		this.code = code;
		this.msg = msg;
	}
	public DefMsgException(String msg) 
	{
		this.code = ResultData.ERROR;
		this.msg = msg;
	}

	public String getDefMsg() {
		return msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
